package com.hogwarts.webui.pageobj;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class JsPage {
    public static WebElement getFrom(WebDriver driver) {
        return driver.findElement(By.id("fromStationText"));
    }

    public static WebElement getTo(WebDriver driver) {
        return driver.findElement(By.id("toStationText"));
    }

    public static WebElement getTrainDate(WebDriver driver) {
        return driver.findElement(By.id("train_date"));
    }
}
